//
//  BaseViewController.m
//  268EDU_Demo
//
//  Created by 刘星 on 2017/4/10.
//  Copyright © 2017年 edu268. All rights reserved.
//

#import "BaseViewController.h"
#import "BaseViewModel.h"

@interface BaseViewController ()

@property (nonatomic, strong, readwrite) BaseViewModel *viewModel;

@end

@implementation BaseViewController

- (instancetype)initWithViewModel:(BaseViewModel *)viewModel {
    self = [super init];
    if (self) {
        self.viewModel = viewModel;
    }
    return self;
}

- (void)bindViewModel {}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.viewModel.navigationImp = [[ViewModelNavigationImpel alloc] initWithNavigationController:self.navigationController];
}

@end
